Document directory
Press any key ....
Image version: Click to view the big picture
The KeyCode value collected on the internet is convenient for you to find:
Keycode 8 = BackSpaceKeycode 9 = TabKeycode 12 = ClearKeycode 13 = EnterKeycode 16 = Shift_LKeycode 17 = Control_LKeycode 18 = Alt_LKeycode 19 = PauseKeycode 20 = Caps_LockKeycode 27 = EscapeKeycode 32 = spaceKeycode 33 = PriorKeycode 34 = Next
Introduction:When you write a Javascript script, you need to obtain the corresponding value before performing corresponding operations on the buttons. The following lists the values of all JavaScript keycode keys.
Special attention:
Determine whether the ctrl key is pressed: Use event. ctrlkey
Determine whether shift is pressed: Use event. shiftkey
Judge whether the Alt key is pressed: Use event. altkey
When checking whether the input method is E
The keycode value of the keyboard is a useful element when an event is triggered when writing javascript. You can add it to your favorites. Keycode 0 =
Keycode 1 =
Keycode 2 =
Keycode 3 =
Keycode 4 =
This article mainly summarizes the KeyCode value of the keyboard. If you need a friend, please refer to it and hope to help you with keycode 0 =
Keycode 1 =
Keycode 2 =
Keycode 3 =
Keycode 4 =
1. Spin Lock
A spin lock enables a thread to perform an empty loop without being suspended while not acquiring a lock, (that is, the so-called spin, which is the execution of the empty loop itself), and if the thread can acquire a lock after several empty loops, continue executing. If the thread is still unable to get
This is convenient for client keyboard event handling. We collect the following information from the Internet for you and your reference later:Event. keycode (JavaScript) keycode 8 = backspace
Keycode 9 = tab Tab
Keycode 12 = clear
Keycode 13 = enter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.